package com.oglvip.business.util;

import org.apache.commons.lang3.time.FastDateFormat;

import java.util.Date;

/**
 * @auther hanchao
 * @date 2017/2/12 0:10
 */
public class DateUtil {
    private static final FastDateFormat ISO_DATETIME_FORMAT = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss");
    public static String timestatmpToNormalString(Long timestamp){
        return timestamp == null ? "" :ISO_DATETIME_FORMAT.format(new Date(timestamp));
    }
}
